<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>显示所有通过审核的游戏</title>
</head>
<body>
    <table border="1" cellspacing="1">
        <tr>
            <td>软件名称</td>
            <td>APK名称</td>
            <td>软件大小（单位：M）</td>
            <td>支持ROM</td>
            <td>下载量（单位：次）</td>
            <td>应用简介</td>
        </tr>
        <c:forEach var="game" items="${page.itmes}">
            <tr>
                <td>${game.softwareName}</td>
                <td>${game.apkName}</td>
                <td>${game.softwareSize}</td>
                <td>${game.supportRom}</td>
                <td>${game.downloads}</td>
                <td>${game.appInfo}</td>
            </tr>
        </c:forEach>
    </table>
    <c:if test="${page.pageTotal>1}">
        <div>
            <span>当前页：【${page.pageNo}】/${page.pageTotal}</span>
            <c:if test="${page.pageNo>1}">
                <span><a href="../../../gameinfo/games/${page.pageNo-1}/${page.pageSize}">上一页</a></span>
            </c:if>
            <c:if test="${page.pageNo<page.pageTotal}">
                <span><a href="../../../gameinfo/games/${page.pageNo+1}/${page.pageSize}">下一页</a></span>
            </c:if>
        </div>
    </c:if>
</body>
</html>
